import request from "../../http";
const informationApi = {
  async getInformationData(query) {
    return request({
      url: "/api/categoryMessage/list",
      method: "get",
      params: query
    });
  },
  async getInformationDetail(id) {
    return request({
      url: `/api/categoryMessage/${id}`,
      method: "get"
    });
  },
  async queryInformationData(query) {
    return request({
      url: "/api/categoryMessage/list",
      method: "get",
      params: query
    });
  },
  async delInformationDatas(query) {
    return request({
      url: "/api/categoryMessage",
      method: "delete",
      data: query
    });
  },
  async editRemark(query) {
    return request({
      url: "/api/categoryMessage",
      method: "put",
      data: query
    });
  },
  async getTargetUser(query) {
    return request({
      url: "/api/user/list/noUser",
      method: "get",
      params: query
    });
  },
  async download(query) {
    return request({
      url: "/api/categoryMessage/download",
      method: "post",
      data: query,
      responseType: "blob"
    });
  }
};
export default informationApi;
